package com.zhiyou.utils;


public class JsonResult{
	private int code;		//状态码
    private Object data;	//返回的数据
    private String mesagge;	//返回的提示信息
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public String getMesagge() {
		return mesagge;
	}
	public void setMesagge(String mesagge) {
		this.mesagge = mesagge;
	}
	public JsonResult(int code, Object data, String mesagge) {
		super();
		this.code = code;
		this.data = data;
		this.mesagge = mesagge;
	}
	public JsonResult(Object data, String mesagge) {
		this.code=200;
		this.data = data;
		this.mesagge = mesagge;
	}
	public JsonResult(String mesagge) {
		this.code = 200;
		this.mesagge = mesagge;
	}
	
	public JsonResult(int code, String mesagge) {
		this.code = code;
		this.mesagge = mesagge;
	}
	@Override
	public String toString() {
		return "JsonResult [code=" + code + ", data=" + data + ", mesagge=" + mesagge + "]";
	}
}
